<!DOCTYPE html>
<html>
<head>
    <title></title>
    #parse("sys/header.html")
</head>
<body>
<div id="rrapp" v-cloak>
    <div v-show="showList">
        <Row :gutter="16">
            <i-col span="6">
                <i-input v-model="q.content" @on-enter="query" placeholder="内容模糊查询"/>
            </i-col>
            <i-button @click="query">查询</i-button>
            <!--#if($shiro.hasPermission("feedback:update"))-->
            <!--<i-button type="warning" @click="update"><i class="fa fa-pencil-square-o"></i>&nbsp;查看</i-button>-->
            <!--#end-->
            #if($shiro.hasPermission("feedback:delete"))
            <i-button type="error" @click="del"><i class="fa fa-trash-o"></i>&nbsp;删除</i-button>
            #end
        </Row>
        <table id="jqGrid"></table>
        <div id="jqGridPager"></div>
    </div>

    <Card v-show="!showList">
        <p slot="title">{{title}}</p>
        <i-form ref="formValidate" :model="apiFeedback" :rules="ruleValidate" :label-width="80">
            <Form-item label="会员" prop="userName">
                <i-input v-model="apiFeedback.userName" placeholder="会员" disabled/>
            </Form-item>
            <Form-item label="内容" prop="content">
                <i-input v-model="apiFeedback.content" placeholder="内容" disabled/>
            </Form-item>

            <Form-item label="反馈信息" prop="remark">
                <i-input v-model="apiFeedback.remark" type="textarea" :rows="4" placeholder="备注信息..."/>
            </Form-item>
            <Form-item>
                <i-button type="primary" @click="handleSubmit('formValidate')">提交反馈</i-button>
                <i-button type="warning" @click="reload" style="margin-left: 8px"/>
                返回</i-button>
            </Form-item>
        </i-form>
    </Card>
</div>

<script src="${rc.contextPath}/js/feedback/feedback.js?_${date.systemTime}"></script>
</body>
</html>